<div id="main-content">
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
        <div class="widget-block">
          <div class="widget-head">
            <h5><?php print $title?></h5>
          </div>
          <div class="widget-content">
            <div class="widget-box">
              <table class="data-tbl-boxy table">
                <thead>
                  <tr>
                    <th>Nama</th>
                    <th>Shortname</th>
                    <th>Account</th>
                  </tr>
                </thead>
                <tbody>
                  <?php
                  print $this->form_eksternal->form_open("", '', array());
                  if(is_array($data)){
                    foreach ($data as $key => $value) {
                      $keuangan = $this->nbscache->get_explode("variable", "keuangan_mahasiswa_fakultas_beban_mahasiswa_".$value->id);
                      print "
                  <tr>
                    <td>{$value->name}</td>
                    <td>{$value->shortname}</td>
                    <td>".$this->form_eksternal->form_autocomplate("fak_".$value->id, "keuangan_mahasiswa_fakultas_beban_mahasiswa[{$value->id}]", 
                            "fak_".$value->id, "keuangan_mahasiswa_fakultas_beban_mahasiswa_".$value->id, site_url("frm/accounting/auto_account"), 
                      $this->global_models->get_field("frm_account", "title", array("id_frm_account" => $keuangan[1])), $keuangan[1])."</td>
                  </tr>"
                  ;
                    }
                  }
                  ?>
                </tbody>
              </table>
              <button type="submit" class="btn btn-info">Save changes</button>
              </form>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>